#include <QMainWindow>
#include <QImage>

#ifndef FUNCTION_H
#define FUNCTION_H

class Function {
public:
    Function(QImage image);
    Function();

    void copyPicture(QImage image);
    QImage getInitialImage();
    QImage getLastImage();
    QImage getFinalImage();

    void setLastImage(QImage image);
    void setFinalImage(QImage image);

    //图形变换
    QImage expandPicture(int a);
    QImage shrinkPicture(int a);
    QImage revolvePicture(double a);

    //滤波
    QImage squarePicture();
    QImage midPicture();
    QImage gaosiPicture();
    QImage sidesPicture();
    QImage averagePicture();

    //涂鸦
    QImage strawPicture();
    QImage bucketPicture();
    QImage paintPicture();

    //其他
    QImage scissorsPicture();
    QImage jigsawPicture();
    QImage textPicture();

private:

    QImage initialImage;//存储原始图片
    QImage lastImage;//存储上一步图片
    QImage finalImage;//存储最新修改后的图片

};

#endif // FUNCTION_H
